import 'package:flutter/material.dart';
import 'package:my_flutter_demo/pages/home_page.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';


void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return ScreenUtilInit(
      designSize: const Size(375, 812),
      minTextAdapt: true,// 自适应文本
      splitScreenMode: true,// 支持分屏
      builder: (_,child) => MaterialApp(
        home: child,
      ),
      child: const HomePage(),
    );
  }
}